//
//  receiveRLGlamourDay.m
//  tcpoctest
//
//  Created by gump on 6/6/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "receiveRLGlamourDay.h"

#import "RankListDataSource.h"
#import "rankListInfo.h"

@implementation receiveRLGlamourDay

-(void)processreceive
{
    //返回 27char(1),6char(1),[用户名长度char(1),
    //用户名char(x),消费金额长度char(1),
    //消费金额char(x)]*N 顺序
    
    [[DataControl shareControl].ranklistDS delAllArr];
    
    [[DataControl shareControl].UICommendDS addUICommand:UC_RANKLIST_RECEIVE];
    
    while (logicsb.mrestLength > 0) {
        rankListInfo *rlinfo = [[rankListInfo alloc] init];
        rlinfo.strmail = [logicsb ReadUnencodeString];
        rlinfo.strmoney = [logicsb ReadUnencodeString];
        
        [[DataControl shareControl].ranklistDS AddRichInfo:rlinfo];
    }
    
    [[DataControl shareControl].UICommendDS addUICommand:UC_REFRESHCURVIEW];
    
    [self ShowLog];
    
}

@end
